<!DOCTYPE html>
<html lang="ja">
<head>
    <meta charset="UTF-8">
    <title>obs_tokei</title>
    <link rel="preconnect" href="https://fonts.gstatic.com/">
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/dayjs@1/dayjs.min.js"></script>
    <style>
        body {
            margin: 0;
            font-family: 'Roboto', sans-serif;
            display: flex;
            /* background-color: green; 背景確認用 */
        }
        #clock {
            font-size: 32px;
            background:rgba(0, 0, 0, 0.8); /* 0.8は透明度（1.0で透明なし） */
            /* background: #ff9b4e; */ /* 透明度なしの色指定 */
            color: #fff;
            padding: 6px 16px;
            border-radius: 0 10px 0 0; /* 角丸の設定。全て角丸にするなら全て 10px にする */
            text-transform: uppercase;
            letter-spacing: 4px;
            position: fixed; /* 画面下に配置するための記述 */
            bottom: 0; /* 〃 */
        }
    </style>
</head>
<body>
    <div id="clock"></div>
    <script>
        function updateClock() {
            const now = dayjs();
            document.getElementById('clock').innerText = now.format('YYYY/MM/DD ddd HH:mm:ss');
        }
        setInterval(updateClock, 1000);
        updateClock(); // すぐに時計を表示するための最初の呼び出し
    </script>
</body>
</html>
